{include file="common/head"}
<head>
    <title>系统菜单管理</title>

    <style>
        a{text-decoration:none;}
    </style>
</head>
<body >
<div class="container-fluid">
    <table class="table table-sm table-hover table-striped">
        <thead>
            <th>序号</th>
            <th>菜单名称</th>
            <th>说明</th>
            <th>录入人</th>        
            <th>录入时间</th>
            <th>是否启用</th>
            <th>
                <button type="button" class="btn btn-sm btn-primary">
                    <a href="/index.php/menu/menu_add" alt="新增菜单项(New menu item)"><span class="bi-plus-lg" style="color:white;"></span></a>
                </button>
            </th>
        </thead>
        <tbody>
            {foreach $data as $k=>$kv}
            <tr>
                <td>{$k+1}</td>
                <td>{$kv['name']}</td>
                <td>{$kv['title']}</td>
                <td>{$kv['creater_name']}</td>
                <td>{$kv['create_time']}</td>
                {if $kv['status']==1}
                    <td>{$kv['status_name']}</td>
                {else if $kv['status']==2}    
                    <td style="text-decoration:line-through;color:red;">{$kv['status_name']}</td>
                {/if}
                <td>
                    <a href="/index.php/menu/edit/id/{$kv['id']}">
                        <button class="btn btn-sm btn-info"><span class="bi-pencil"></span></button>
                    </a>
                </td>
            </tr>
            {/foreach}

        </tbody>    
    </table>
</div>

</body>

<script type="text/javascript">
  

</script>


</body>
</html>
